package com.aaa.mapper;

import com.aaa.entity.Discuss;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 评论管理mapper接口
 */
public interface DiscussMapper extends BaseMapper<Discuss> {
    /**
     * 查询所有的评论信息
     * @return
     */
    public List<Discuss> listAll(String keyword);

    /**
     * 根据评论did删除评论
     * @param did
     * @return
     */
    public Integer delete(Integer did);
}
